package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.SfdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface SfdService extends BaseService<SfdBean> {

	SfdBean getSfdBeanById(String id) throws Exception;
	
	void removeSfdBeanById(String id) throws Exception;
	
	void removeSfdBeanByIds(String ids) throws Exception;
	
	SfdBean saveSfdBean(SfdBean crm) throws Exception;
	
	SfdBean updateSfdBean(SfdBean crm) throws Exception;
	
	Page<SfdBean>  findSfdBeanByCond(SfdBean bean,
			Page<SfdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveSfdBeanExt(String sql) throws Exception;

	String findSfdBeanExtCreate(String tableName) throws Exception;

	String findSfdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findSfdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasSfdBeanExtData(String tableName, String id)
			throws Exception;
}